<?php if(!defined('PATH_HD'))exit;
$db->exe("DROP TABLE IF EXISTS `ec_config`");
$db->exe("CREATE TABLE `ec_config` (
  `cid` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT '配置项的主键',
  `title` varchar(45) NOT NULL DEFAULT '' COMMENT '配置的标题（视图使用）',
  `name` varchar(45) NOT NULL DEFAULT '' COMMENT '配置项值（修改config.php配置文件中配置项名称)',
  `value` varchar(45) NOT NULL DEFAULT '' COMMENT '配置项值（修改config.php配置文件中配置项值)',
  `message` varchar(100) NOT NULL DEFAULT '' COMMENT '配置描述（视图使用）',
  `ctid` smallint(6) NOT NULL,
  PRIMARY KEY (`cid`),
  KEY `fk_ec_config_ec_config_type1_idx` (`ctid`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='网站配置表'");
$db->exe('REPLACE INTO `ec_config`(`cid`,`title`,`name`,`value`,`message`,`ctid`)VALUES (1,"网站名称","webname","EasyCms32","网站名称",0)');
$db->exe('REPLACE INTO `ec_config`(`cid`,`title`,`name`,`value`,`message`,`ctid`)VALUES (2,"ICP备案","icp","京Icp备000001","ICP备案",0)');
$db->exe('REPLACE INTO `ec_config`(`cid`,`title`,`name`,`value`,`message`,`ctid`)VALUES (3,"站长邮箱","email","baidu@baidu.com","站长邮箱",0)');
$db->exe('REPLACE INTO `ec_config`(`cid`,`title`,`name`,`value`,`message`,`ctid`)VALUES (4,"模板风格","style","default","模板风格",0)');
$db->exe('REPLACE INTO `ec_config`(`cid`,`title`,`name`,`value`,`message`,`ctid`)VALUES (5,"网站开关","flag",1,"网站开关",0)');

?>